﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_MasterPage_Admin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected override void OnInit(EventArgs e)
    {
        //Important because can't use Response Object
        HttpResponse response = System.Web.HttpContext.Current.Response;
        
        if (!AdminCore.IsAuthenticate(HttpContext.Current.Session))
        {
            response.Redirect(AdminCore.PageLogin);
        }
        base.OnInit(e);
    }
}
